
#include "Camera.h"

Camera * Camera::instance = NULL;

Camera::Camera() {
	cameraX = 0;
	cameraY = 0;
	cameraSpeedX = 0;
	cameraSpeedY = 0;
}


Camera* Camera::getInstance()
{
	if (!instance)
		instance = new Camera();
	return instance;
}

void Camera::setcameraX(float cameraX)
{
	this->cameraX = cameraX;
}

void Camera::setcameraY(float cameraY)
{
	this->cameraY = cameraY;
}

void Camera::setcameraSpeedX(float cameraSpeedX)
{
	this->cameraSpeedX = cameraSpeedX;
}

void Camera::setcameraSpeedY(float cameraSpeedY)
{
	this->cameraSpeedY = cameraSpeedY;
}



float Camera::getcameraX()
{
	return cameraX;
}

float Camera::getcameraY()
{
	return cameraY;
}

float Camera::getcameraSpeedX()
{
	return cameraSpeedX;
}

float Camera::getcameraSpeedY()
{
	return cameraSpeedY;
}


